package cn.zhang.violet.utils


object NBUtils {

    def str2Int(str:String) = {
        try {
            str.toInt
        } catch {
            case _: Exception => 0
        }
    }


    def str2Double(str:String) = {
        try {
            str.toDouble
        } catch {
            case _: Exception => 0d
        }
    }


}
